package org.aplikator.client.descriptor;

import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("serial")
public class MenuDTO extends ClientDescriptorBase {

    private List<ActionDTO> actions = new ArrayList<ActionDTO>();

    @SuppressWarnings("unused")
    private MenuDTO() {
    }

    public MenuDTO(String id, String localizedName) {
        super(id, localizedName);
    }

    public MenuDTO addAction(ActionDTO action) {
        actions.add(action);
        return this;
    }

    public List<ActionDTO> getActions() {
        return actions;
    }

}
